/**********************************************************************************
// SpaceShip Header File
// 
// Creation:	14 Set 2008
// Updated:		11 Out 2009
// Compiler:	Visual Studio 2008
//
// Notes:		Defines a space ship for asteroids game
//
**********************************************************************************/

#ifndef _SPACESHIP_H_
#define _SPACESHIP_H_

#include "Geometry.h"
#include "Vector.h"
#include "Types.h"

class SpaceShip : public Poly
{
private:
	Vector2 speed;										// SpaceShip's current speed 
	Vector2 direction;									// SpaceShip's nose direction

public:
	SpaceShip();										// default constructor
	void Rotate(float ang);								// rotate the space ship
	void AccelerateUp();								// accelerate ship forward
	void AccelerateDown();								// accelerate ship backward
	void Inertia();										// move ship by inertia
	void Reset();										// reset default direction and speed
	const Vector2 & Direction() { return direction; }	// return direction of the ship
};

#endif